home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group00a.txt / 000127_icon-group-sender _Mon May 29 11:57:32 2000.msg < prev    next >
Internet Message Format  |  2001-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id LAA02046
  4.     for icon-group-addresses; Mon, 29 May 2000 11:57:10 -0700 (MST)
  5. Message-Id: <200005291857.LAA02046@baskerville.CS.Arizona.EDU>
  6. From: gep2@terabites.com
  7. Date: Mon, 29 May 2000 11:39:43 -0500
  8. Subject: Lists: sort on more than one field?
  9. To: icon-group@optima.CS.Arizona.EDU
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12.  
  13. > I am currently working on a small databaseof library data. Data
  14. is the output of a database program and is in comma-delimited
  15. format, therefore easily accesible as lists or records. I would
  16. like to sort data not only by one field (I use sortf for that)
  17. but one more than one field: i.e. sort on field_1 and osrt all
  18. data with the same value for field_1 by field_4, for example. Is
  19. it possible? I did not find anything in the Icon library for
  20. that. May I ask for advice?
  21.  
  22. The answer is so simple as to be trivial.... simply build an additional (single) 
  23. field (perhaps temporarily) which contains all the fields you wish to sort on, 
  24. in the order of precedence (most important first).  :-)
  25.  
  26. Gordon Peterson
  27. http://web2.airmail.net/gep2/
  28. Support the Anti-SPAM Amendment!  Join at http://www.cauce.org/
  29. 12/19/98: the day the Conservatives demonstrated their scorn for their
  30.    fraudulent sham of representative government.  Voters, remember it!
  31.  
  32.